package persistence.dao;

import java.util.Set;

import persistence.dto.ItemDTO;

public interface IItemsDAO
{ 
	/**
	 * call to get all items from memory
	 * @return returns a set of ItemDTO objects from memory
	 */
	public Set<ItemDTO> getAllItems();
	
	/**
	 * persists a new item to memory
	 * @param itemDTO it itemDTO to persist to memory
	 * @return returns the ID of the newly added item
	 */
	public int add(ItemDTO itemDTO);
	
	/**
	 * edits the item in memory
	 * @param itemDTO the item to be updated
	 * @return returns true upon success, false otherwise
	 */
	public boolean edit(ItemDTO itemDTO);
	
	/**
	 * removes the item from memory
	 * @param itemDTO the item to be removed
	 * @return returns true upon success, false otherwise
	 */
	public boolean remove(ItemDTO itemDTO);

}
